jquery not running from <body> [closed]
Posted
by
Andre
on Programmers
See other posts from Programmers
or by Andre
Published on 2011-03-08T20:34:59Z
Indexed on
2011/03/09
0:18 UTC
Read the original article
Hit count: 219
jQuery
I'm calling a function that's loaded in custom js file in the header.
my.js has
$(document).ready(function(){
function testFunction(){
alert("inside testfunction");
}
});
after a few clicks, this is loaded in the :
$("#someid").live($.myapp.event.play, function(event) {
alert("this works");
testFunction();
});
the alert "this works", fires, but then nothing happens, what am I doing wrong?
© Programmers or respective owner